<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no">
    <meta charset="utf-8">
    <title>{$title}</title>
    <link rel="shortcut icon" href="__STATIC__/src/common/img/cauliflower-small.png" type="image/x-icon" />
    <link rel="stylesheet" type="text/css"  href="__STATIC__/src/common/css/bootstrap.css" />
    <link rel="stylesheet" type="text/css"  href="__STATIC__/src/common/css/common.css" />
</head>
<body>
{include file="common@common/header"}
<div class="col-md-2 col-md-offset-1">
    {include file="common/leftPanel"}
</div>
<div class="col-md-5">
    <table class="table table-hover table-striped table-bordered">
        <tr>
            <th>监考官</th>
            <th>考试名称</th>
            <th>考试状态</th>
            <th>清理考试</th>
        </tr>
        {volist name="info" id="item"}
        <tr>
            <td>{$item.user_name}</td>
            <td>{$item.exam_name}</td>
            <td>
                {if condition="$item.status=='0'"}未开始
                {elseif condition="$item.status=='1'"/}正在进行中
                {elseif condition="$item.status=='2'"/}已结束
                {elseif condition="$item.status=='3'"/}已清理
                {else/}
                {/if}
            </td>
            <td>
                {if condition="$item.status!='3'"}
                <a href='{:url("cleanExam?key=".($item.exam_id+12854))}' data-toggle="tooltip" title="清理考试"><span class="glyphicon glyphicon-erase"></span></a>
                {else /}
                <a href='{:url("deleteExam?key=".($item.exam_id+34542))}' data-toggle="tooltip" title="删除考试"><span class="glyphicon glyphicon-remove-circle"></span></a>
                {/if}
            </td>
        </tr>
        {/volist}
    </table>
</div>
<script src="__STATIC__/src/common/js/jquery-3.2.1.js"></script>
<script src="__STATIC__/src/common/js/bootstrap.js"></script>
<script src="__STATIC__/src/common/js/admin.js"></script>
<script>
    $(function () {
        $("[data-toggle='tooltip']").tooltip();
    });
</script>
</body>
</html>